package cn.chinaflame.pagodas.req;

import cn.chinaflame.pagodas.enums.CodeEnum;
import cn.chinaflame.pagodas.utils.ParamPreconditions;

/**
 * @author created by boming
 * @date 2018年1月12日 上午9:18:07
 */
public class RegistReq extends BaseReq {

    private String mobile;//手机
    private String loginId;//登录id
    private String loginPwd;//登录密码
    private String email;//邮箱
    private String openid;//微信openid


    @Override
    public void check() {
        // TODO Auto-generated method stub
        super.check();
        ParamPreconditions.checkNotEmpty(mobile, CodeEnum.FAIL.getCode(), "手机号不能为空");
        ParamPreconditions.checkNotEmpty(openid, CodeEnum.FAIL.getCode(), "openid不能 为空");
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

}
